import 'package:flutter/material.dart';
class Mybutton extends StatelessWidget {
  final text;
  final pressed;
  final color;
   // ButtonPage({this.text='',this.pressed,}) :super({key:Key});
const Mybutton({this.text='',this.pressed=null,this.color=Colors.white}) ;
 
     @override
  Widget build(BuildContext context) {
    return Container(
       child:RaisedButton(
        child: Text(this.text),
        onPressed:this.pressed ,
      ),
    );
  }
 // _ButtonPageState createState() => _ButtonPageState(this.text);
}

// class _ButtonPageState extends State<ButtonPage> {
  
//   @override
//   Widget build(BuildContext context) {
//     return Container(
//        child:RaisedButton(
//         child: Text(this.text),
//         onPressed:this.pressed ,
//       ),,
//     );
//   }
// }